package com.syt.suan.gateway.util;

import com.syt.suan.gateway.domain.PayLoadConstant;
import io.jsonwebtoken.Claims;

public class JwtUserPayLoadParser {


    public static String getRedisUserKey(Claims claims) {
        return claims.get(PayLoadConstant.REDIS_USER_KEY, String.class);
    }

    public static String getUserId(Claims claims) {
        return claims.get(PayLoadConstant.USER_ID, String.class);
    }
}
